export default function useControls(map, AMap) {
  map.addControl(
    new AMap.Scale({
      position: 'LB',
    }),
  ),//比例尺
  map.addControl(new AMap.ToolBar());//缩放
  map.addControl(new AMap.ControlBar({
    position: 'RB',
    offset: [-10,110],
  }));//旋转
  map.addControl(new AMap.Geolocation({
    offset:[20,90],
  }));//定位
}
